class Foo(object):
	name = "Alexander"

	# def __getattr__(self, item):
	# 	if hasattr(self,item):
	# 		print(f"有这个属性")
	# 	else:
	# 		print(f"没有这个属性")


foo = Foo()

# print(foo.name)

foo.age = 1

print(foo.gender)

